package cn.valo.org.service.impl;

import cn.valo.system.domain.SystemDictionaryDetail;
import cn.valo.basic.query.BaseQuery;
import cn.valo.basic.service.impl.BaseServiceImpl;
import cn.valo.basic.util.PageList;
import cn.valo.system.mapper.SystemDictionaryDetailMapper;
import cn.valo.system.service.ISystemDictionaryDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SystemDictionaryDetailServiceImpl extends BaseServiceImpl<SystemDictionaryDetail> implements ISystemDictionaryDetailService {
    @Autowired
    private SystemDictionaryDetailMapper systemDictionaryDetailMapper;


    @Override
    public void removeByTypes_id(Long id) {
        systemDictionaryDetailMapper.deleteByTypes_id(id);

    }

    @Override
    public PageList<SystemDictionaryDetail> queryPageByTpypeid(BaseQuery tQuery) {
        return new PageList<SystemDictionaryDetail>(systemDictionaryDetailMapper.queryCountByTpypeid(tQuery),systemDictionaryDetailMapper.queryPageByTpypeid(tQuery)) ;
    }

    @Override
    public Long queryCountByTpypeid(BaseQuery tQuery) {
        return systemDictionaryDetailMapper.queryCountByTpypeid(tQuery);
    }
}
